import Cyq from '@/views/login/cyq.vue'
import Esc from '@/views/login/esc.vue'
import Fw from '@/views/login/fw.vue'
import Login from '@/views/login/login.vue'
import Sy from '@/views/login/sy.vue'
import Xc from '@/views/login/xc.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      component: Login,
      children: [
        {
          path: 'sy',
          component: Sy,
        },
        {
          path: 'cyq',
          component: Cyq,
        },
        {
          path: 'xc',
          component: Xc,
        },
        {
          path: 'esc',
          component: Esc,
        },
        {
          path: 'fw',
          component: Fw,
        },
      ]
    },
  ],
})

export default router
